package com.erp.mapper;

import com.erp.entity.Warehouse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface WarehouseMapper{

    Warehouse findWarehouseByName(String name);

    List<Warehouse> getAll();

    int add(Warehouse warehouse);

    int delete(Integer id);
    
    int update(Warehouse warehouse);
}
